﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/ModlingMasterPage.master"
    AutoEventWireup="true" CodeBehind="EditReportView.aspx.cs" Inherits="RMS.WebPages.Technical.ManageRadiologyImageView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PagContent" runat="server">
  <cc:Notification ID="Notification" DefaultText="Update Sussefuly" runat="server" />
    <table class="Details" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2" class="header">
                Write Report
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label1" runat="server" Text="Request ID"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TXTRequestid" runat="server"></asp:TextBox>
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="req"
                    ControlToValidate="TXTRequestid" ErrorMessage="Please enter the request id">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label2" runat="server" Text="Patient Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TXTPatientname" class="autocomplete ui-widget" runat="server" FunctionName="GetPationts" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="req"
                    ControlToValidate="TXTPatientname" ErrorMessage="Please enter the patient name">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label3" runat="server" Text="Patient ID"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TXTPatientid" runat="server"></asp:TextBox>
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ValidationGroup="req" runat="server"
                    ControlToValidate="TXTPatientid" ErrorMessage="Please enter the patient id">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right">
                <asp:LinkButton ID="btnGetDetails" runat="server" Visible="false" onclick="btnGetDetails_Click">Get Request Details</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <center>
                    <asp:Button ID="BtnRetrieveRequest" runat="server" Text="Retrieve Information" OnClick="BtnRetrieveRequest_Click" />
                </center>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="gvRequests" runat="server" ShowHeader="true" AutoGenerateColumns="false"
                    DataKeyNames="RequestID" OnRowCommand="gvRequests_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="PatientId" HeaderText="Patient Id"></asp:BoundField>
                        <asp:BoundField DataField="RequestId" HeaderText="Request Id"></asp:BoundField>
                        <asp:ButtonField ButtonType="Link" Text="Get Request" CommandName="GetRequest">
                            <ItemStyle CssClass="button" />
                        </asp:ButtonField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Repeater ID="rptImag" Visible="false" runat="server" OnItemDataBound="rptImag_ItemDataBound">
                    <ItemTemplate>
                        <center>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:HyperLink ID="hplImage" Target="_search" Font-Bold="true" runat="server">Image</asp:HyperLink>
                                    </td>
                                    <td>
                                        <asp:HyperLink ID="hplData" Target="_search" Font-Bold="true" runat="server">Dicom Data</asp:HyperLink>
                                    </td>
                                </tr>
                            </table>
                        </center>
                        <br />
                    </ItemTemplate>
                </asp:Repeater>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <ajax:Editor ID="EditorReport" Visible="false" runat="server" ValidationGroup="req" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <center>
                    <asp:Button ID="BtnUpdate" runat="server" Text="Update" Visible="false" 
                        ValidationGroup="req" onclick="BtnUpdate_Click"
                         />
                </center>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="req" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
